/*
 * Alphabet.h
 *
 *  Created on: Sep 5, 2012
 *      Author: v-suqil
 */

#ifndef ALPHABET_H_
#define ALPHABET_H_
#include <cstring>
#include <vector>
#include <map>

struct cmp_str
{
   bool operator()(char const *a, char const *b)
   {
      return std::strcmp(a, b) < 0;
   }
};

typedef std::map<char*, int, cmp_str> dict_t;

class Alphabet {
private:
     dict_t values;
public:
    Alphabet();
    int add(char* value);
    int size();
};

#endif /* ALPHABET_H_ */
